package com.ruoyi.procured.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.procured.domain.Payment;
import com.ruoyi.procured.domain.PaymentReturn;
import com.ruoyi.procured.domain.vo.PaymentReturnVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 申请款主表
*/
@Mapper
public interface PaymentReturnMapper extends BaseMapper<PaymentReturn> {
    /**
     * 查询退款单列表
     */
    List<PaymentReturnVO> selectPaymentReturnVoList(PaymentReturnVO paymentReturnVO);
    /**
     * 判断某采购订单是否已全部付款（全部上传水单且付款金额一致）
     * @param procuredOrderId 采购订单ID
     * @return true：已全部付款，false：未全部付款
     */
    boolean isFullyPaidToReturn(@Param("procuredOrderId") String procuredOrderId);

    List<PaymentReturn> selectPaymentReturnItems(@Param("paymentRequestIds") List<String> paymentRequestIds);
}




